<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<link rel="Bookmark" href="imgs/favicon.ico"/>
	<link rel="Shortcut Icon" href="imgs/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css"/>
	<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
	<title>商城</title>
	<style type="text/css">
		.hr { margin: 20px 5%; width: 90%; height: 1px; background: #EEEEEE; }
		.title { margin-left: 10px; padding: 0; padding-left: 10px; border-left: 5px solid #0088CC; font-weight: bolder; }
		#skuGroup { margin: 20px auto; width: 90%; }
		#skuGroup .skuOne { margin: 20px auto; padding-bottom: 20px; width: 90%;border: 1px solid #EEEEEE;  background: #f9f9f9; }
		#skuForm { margin: 20px auto; padding-bottom: 20px; width: 81%; border: 1px solid #EEEEEE; background: #f9f9f9; }
	</style>
</head>
<body>
<div class="page-container">
	<form class="form form-horizontal" id="form-article-add">
		<div class="row cl title">
			会员劵模板
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 类型选择：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<span class="select-box">
				<select class="select" id="type" onchange="formData.type=this.value;">
					<option value="0">全部栏目</option>
				</select>
				</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 面额(元)：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="number" class="input-text" id="quata" value="0" style="width: 100%;" onblur="formData.quata=this.value;"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 场景选择：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<span class="select-box">
				<select class="select" id="scene" onchange="formData.scene=this.value;">
					<option value="0">全部栏目</option>
				</select>
				</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 满多少(元)：
				<br/>（0代表无门槛）
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="number" class="input-text" id="full" value="0" style="width: 100%;" onblur="formData.full=this.value;"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 减免多少(元)：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="number" class="input-text" id="reduce" value="0" style="width: 100%;" onblur="formData.reduce=this.value;"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				几天后开放：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<!--<input type="number" class="input-text" id="opentime" value="0" style="width: 100%;" onblur="formData.opentime=this.value;"/>-->
				<input type="number" class="input-text" id="opentime" value="0" style="width: 100%;" onblur="formData.opentime=this.value;"/>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">
				<span class="c-red">*</span> 有效天数：
			</label>
			<div class="formControls col-xs-8 col-sm-8">
				<input type="number" class="input-text" id="expire" value="0" style="width: 100%;" onblur="formData.expire=this.value;"/>
			</div>
		</div>
		<!--<div class="row cl">-->
			<!--<label class="form-label col-xs-4 col-sm-3">-->
				<!--<span class="c-red">*</span> 背景图：-->
			<!--</label>-->
			<!--<div class="formControls col-xs-8 col-sm-8" id="bigOut">-->
				<!--<div style="padding: 5px 0; width: 100px; background: #0088cc; text-align: center; font-size: 12px; color: #fff; border-radius: 5px; position: relative;">上传图片</div>-->
				<!--<input type="file" id="bigUpload" style="width: 150px; height: 30px; opacity: 0; cursor: pointer; position: relative; top: -25px; left: -20px;" onchange="uploadImage('big')"/>-->
				<!--<div id="bigShow" style="margin-top: -20px; width: 200px; height: 200px; background: #eee; overflow: hidden;"></div>-->
			<!--</div>-->
		<!--</div>-->
		<br/><br/>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button class="btn btn-primary radius" type="button" onclick="tmpAdd();">
					<i class="Hui-iconfont">&#xe632;</i> 保存模板
				</button>
			</div>
		</div>
	</form>
</div>
</body>
</html>


<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.page.js"></script>
<!--<script type="text/javascript" src="js/datetimepicker.js"></script>-->
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript" src="js/uctmp.js"></script>
<script type="text/javascript">
	var id = getParamByUrl('id');
	var formData = {
		type: 1,
		quata: 0,
		scene: 0,
		full: 0,
		reduce: 0,
		opentime: 0,
		expire: 0,
	};
	(function () {
		tmpOption();
//		//时间选择器
//		$("#opentime").datetimepicker({
//			language: "zh-cn",
//			format: "yyyy-mm-dd hh:ii",
//			autoclose: true
//		});
	})();
</script>